﻿<%@ Page Title="" Language="C#" MasterPageFile="~/views/customer/customermaster.master" AutoEventWireup="true" CodeFile="sqlb.aspx.cs" Inherits="views_customer_sqlb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MyContent" Runat="Server">
    <div class="container-fluid">
       <div class="row">
           <div class="col" aria-required="False">
               <h3 class="text-center" style="color: white">
                   申请列表</h3>
                   <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" DataKeyNames="TrialID" DataSourceID="LinqDataSource1" ForeColor="Black" GridLines="Vertical" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                       <AlternatingRowStyle BackColor="#CCCCCC" />
                       <Columns>
                           <asp:TemplateField>
                               <HeaderTemplate>
                                   <asp:CheckBox ID="CheckBox2" Text="全选" runat="server" OnCheckedChanged="CheckBox2_CheckedChanged" AutoPostBack="True" />
                               </HeaderTemplate>
                               <ItemTemplate>
                                   <asp:CheckBox ID="CheckBox1" runat="server" />
                               </ItemTemplate>
                           </asp:TemplateField>
                           <asp:BoundField DataField="TrialID" HeaderText="申请编号" InsertVisible="False" ReadOnly="True" SortExpression="TrialID" />
                           <asp:BoundField DataField="ConsumerID" HeaderText="用户编号" SortExpression="ConsumerID" />
                           <asp:BoundField DataField="ConsumerName" HeaderText="用户姓名" SortExpression="ConsumerName" />
                           <asp:BoundField DataField="ConsumerAge" HeaderText="用户年龄" SortExpression="ConsumerAge" />
                           <asp:BoundField DataField="ProductID" HeaderText="商品编号" SortExpression="ProductID" />
                           <asp:BoundField DataField="ProductName" HeaderText="商品名称" SortExpression="ProductName" />
                           <asp:BoundField DataField="TrialStatus" HeaderText="体验状态" SortExpression="TrialStatus" />
                           <asp:BoundField DataField="TrialTime" HeaderText="申请时间" SortExpression="TrialTime" />
                       </Columns>
                       <FooterStyle BackColor="#CCCCCC" />
                       <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                       <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                       <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                       <SortedAscendingCellStyle BackColor="#F1F1F1" />
                       <SortedAscendingHeaderStyle BackColor="#808080" />
                       <SortedDescendingCellStyle BackColor="#CAC9C9" />
                       <SortedDescendingHeaderStyle BackColor="#383838" />
                   </asp:GridView>
               <div class="mt-3 d-grid">
                   <asp:Button ID="Button1" runat="server" Text="审核" Class="btn-success btn" style="background-color:black; width: 150px;margin:auto" OnClick="Button1_Click" />
                </div>
               <div class="mt-3 d-grid">
                   <asp:Button ID="Button2" runat="server" Text="开始发货" Class="btn-success btn" style="background-color:black; width: 150px;margin:auto" OnClick="Button2_Click" />
                </div>
                   <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="PJTY.dal.DataClasses1DataContext" EntityTypeName="" TableName="Trial">
               </asp:LinqDataSource>
               <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
               </div>
           </div>
        </div>

</asp:Content>

